-
Notifications
You must be signed in to change notification settings - Fork 30
Show the view state of puppet modules/classes using chevrons on puppetclass selection page #439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…puppet class selection view
|
Hi @me-minus ! Thanks for the contribution! Do you mind providing a screenshot that show cases your change? |
|
Looks good to me and works fine. But I don't want to merge this without the consent of @adamruzicka . |
adamruzicka
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The erb is mixing tabs and spaces for indentation. Could you please only use spaces for that?
| </ul> | ||
|
|
||
| <div class="panel-group paneless puppetclass_group" id="<%= list.first %>-avail-classes" style="margin-bottom: 1px;"> | ||
| <div class="panel-heading" style="padding-top: 2px; padding-bottom: 2px;"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't say I'm exactly happy about inline styling all over the place. Could that be extracted to classes?
| .show(); | ||
| .show() | ||
| .filter('div') | ||
| .find('a.collapsed') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where is the collapsed class being set on a <a>?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't really know.
I used the developers pane to find out how the attributes changed with some hints from the _classes.html.erb file.
The code was created by changing/playing with the left menu pane code in an older foreman version (probably before parternfly 5)

This commit changes the add puppet class view to be a bit more like a tree by changing the big + to be a right chevron or down chevron if the module has been opened.
When I have shown people how to create machines with the help of foreman, many have wondered what the difference between the '+' symbols when adding puppet classes are.